/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2022-10-26
 * Time: 11:19
 */
public class s{
    public static void main(String[] args) {
        short a =128;

        byte b =(byte) a;
        System.out.println(b);
    }
        }
        //错误练习
//class Rectangle{
//    double length;
//    double wide;
//    public double getPerimeter(){
//        double a=(length+wide)*2;
//        return a;
//    }
//    public double getArea(){
//        double a=length*wide;
//        return a;
//    }
//}
//class  Cuboid extends Rectangle{
//
//    double height;
//    public double getVolume(){
//        double a=length*wide*height;
//        return a;
//    }
//}
